package org.gavin.core.attribute;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * YmlSafetyAttribute
 *
 * @author grl
 * @date 2024/1/4
 */
@Data
@Component
@ConfigurationProperties(prefix = "safety",ignoreInvalidFields = true)
public class YmlSafetyAttribute {

    private Map<String,Multiple> multiple;

    @Data
    public static class Multiple{

        private String encSecret;

        private String decSecret;
    }
}
